<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>体彩大乐透模拟选号</title>
    <link rel="stylesheet" href="./styles/main.css" />
  </head>
  <body>
    <div class="container">
      <header>
        <h1>体彩大乐透模拟选号</h1>
        <p class="subtitle">每注2元，前区选5个号（1-35），后区选2个号（1-12）</p>
      </header>

      <main>
        <div class="lottery-section">
          <h2>前区号码</h2>
          <div class="number-grid front-area"></div>

          <h2>后区号码</h2>
          <div class="number-grid back-area"></div>
        </div>

        <div class="control-panel">
          <button id="randomBtn">机选一注</button>
          <button id="clearBtn">清空选号</button>
          <button id="drawBtn">立即开奖</button>
        </div>

        <div class="result-panel">
          <h2>开奖结果</h2>
          <div class="draw-numbers">
            <div class="front-draw"></div>
            <div class="divider">|</div>
            <div class="back-draw"></div>
          </div>
          <div class="prize-result"></div>
        </div>

        <div class="history-panel">
          <h2>历史记录</h2>
          <div class="history-list"></div>
        </div>
      </main>
    </div>
    <script src="./js/lottery.js"></script>
  </body>
</html>
